import tabRoutes from "@/router/tabRouter";
let paths = [];

tabRoutes.forEach(item => paths.push(item.path));

const [home, message, mine] = paths;

const state = {
  tabList: [
    {
      title: "首页",
      path: home,
      icon: "home-o"
    },
    {
      title: "消息",
      path: message,
      icon: "chat-o"
    },
    {
      title: "我的",
      path: mine,
      icon: "manager"
    }
  ]
};

const mutations = {};

const actions = {};

export default {
  namespaced: true,
  state,
  mutations,
  actions
};
